﻿using Daemon.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Daemon.Service.Contract
{
	public interface IUserAuthorizationService : IService
	{
		int GetMaxLoginFailedTimes();

		AdminUser UserValidate(string username, string password, out string error);

		AdminUser GetUserEntity(string username, List<int> roleIds = null, string userType = null);

		AdminUser GetUserEntity(string username, string password, out string error);

	}
}
